#include "askprocessnamedialog.h"
#include "ui_askprocessnamedialog.h"

AskProcessNameDialog::AskProcessNameDialog(const QStringList &processNames, QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AskProcessNameDialog)
{
    ui->setupUi(this);    
    this->ui->comboBox->addItems(processNames);
}

AskProcessNameDialog::~AskProcessNameDialog()
{
    delete ui;
}

QString AskProcessNameDialog::result() const
{
    return this->ui->comboBox->currentText();
}
